home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / Xaw / Scrollbar.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  5KB  |  138 lines

  1. /* $Xorg: Scrollbar.h,v 1.4 2001/02/09 02:03:45 xorgcvs Exp $ */
  2.  
  3.  
  4. /***********************************************************
  5.  
  6. Copyright 1987, 1988, 1998  The Open Group
  7.  
  8. Permission to use, copy, modify, distribute, and sell this software and its
  9. documentation for any purpose is hereby granted without fee, provided that
  10. the above copyright notice appear in all copies and that both that
  11. copyright notice and this permission notice appear in supporting
  12. documentation.
  13.  
  14. The above copyright notice and this permission notice shall be included in
  15. all copies or substantial portions of the Software.
  16.  
  17. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  20. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  21. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  22. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  23.  
  24. Except as contained in this notice, the name of The Open Group shall not be
  25. used in advertising or otherwise to promote the sale, use or other dealings
  26. in this Software without prior written authorization from The Open Group.
  27.  
  28.  
  29. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
  30.  
  31.                         All Rights Reserved
  32.  
  33. Permission to use, copy, modify, and distribute this software and its 
  34. documentation for any purpose and without fee is hereby granted, 
  35. provided that the above copyright notice appear in all copies and that
  36. both that copyright notice and this permission notice appear in 
  37. supporting documentation, and that the name of Digital not be
  38. used in advertising or publicity pertaining to distribution of the
  39. software without specific, written prior permission.  
  40.  
  41. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  42. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  43. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  44. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  45. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  46. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  47. SOFTWARE.
  48.  
  49. ******************************************************************/
  50. /* $XFree86: xc/lib/Xaw/Scrollbar.h,v 1.6 2001/01/17 19:42:29 dawes Exp $ */
  51.  
  52. #ifndef _Scrollbar_h
  53. #define _Scrollbar_h
  54.  
  55. /*
  56.  * Scrollbar Widget
  57.  */
  58.  
  59. #include <X11/Xmu/Converters.h>
  60. #include <X11/Xfuncproto.h>
  61.  
  62. /* Scrollbar resources:
  63.  
  64.  Name             Class        RepType        Default Value
  65.  ----             -----        -------        -------------
  66.  accelerators         Accelerators    AcceleratorTable NULL
  67.  ancestorSensitive   AncestorSensitive    Boolean        True
  68.  background         Background        Pixel        XtDefaultBackground
  69.  backgroundPixmap    Pixmap        Pixmap        XtUnspecifiedPixmap
  70.  borderColor         BorderColor    Pixel        XtDefaultForeground
  71.  borderPixmap         Pixmap        Pixmap        XtUnspecifiedPixmap
  72.  borderWidth         BorderWidth    Dimension    1
  73.  colormap         Colormap        Colormap    parent's colormap
  74.  cursor             Cursor        Cursor        None
  75.  cursorName         Cursor        String        NULL
  76.  depth             Depth        int        parent's depth
  77.  destroyCallback     Callback        XtCallbackList    NULL
  78.  foreground         Foreground        Pixel        XtDefaultForeground
  79.  height             Height        Dimension    length or thickness
  80.  insensitiveBorder   Insensitive    Pixmap        GreyPixmap
  81.  jumpProc         Callback        XtCallbackList    NULL
  82.  length             Length        Dimension    1
  83.  mappedWhenManaged   MappedWhenManaged    Boolean        True
  84.  minimumThumb         MinimumThumb    Dimension    7
  85.  orientation         Orientation    XtOrientation    XtorientVertical
  86.  pointerColor         Foreground        Pixel        XtDefaultForeground
  87.  pointerColorBackground Background    Pixel        XtDefaultBackground
  88.  screen             Screen        Screen        parent's screen
  89.  scrollDCursor         Cursor        Cursor        XC_sb_down_arrow
  90.  scrollHCursor         Cursor        Cursor        XC_sb_h_double_arrow
  91.  scrollLCursor         Cursor        Cursor        XC_sb_left_arrow
  92.  scrollProc         Callback        XtCallbackList    NULL
  93.  scrollRCursor         Cursor        Cursor        XC_sb_right_arrow
  94.  scrollUCursor         Cursor        Cursor        XC_sb_up_arrow
  95.  scrollVCursor         Cursor        Cursor        XC_sb_v_double_arrow
  96.  sensitive         Sensitive        Boolean        True
  97.  shown             Shown        Float        0.0
  98.  thickness         Thickness        Dimension    14
  99.  thumb             Thumb        Bitmap        GreyPixmap
  100.  thumbProc         Callback        XtCallbackList    NULL
  101.  topOfThumb         TopOfThumb        Float        0.0
  102.  translations         Translations    TranslationTable see source or doc
  103.  width             Width        Dimension    thickness or length
  104.  x             Position        Position    0
  105.  y             Position        Position    0
  106.  
  107. */
  108.  
  109. #define XtCMinimumThumb "MinimumThumb"
  110. #define XtCShown "Shown"
  111. #define XtCTopOfThumb "TopOfThumb"
  112.  
  113. #define XtNminimumThumb "minimumThumb"
  114. #define XtNtopOfThumb "topOfThumb"
  115.  
  116. typedef struct _ScrollbarRec      *ScrollbarWidget;
  117. typedef struct _ScrollbarClassRec *ScrollbarWidgetClass;
  118.  
  119. extern WidgetClass scrollbarWidgetClass;
  120.  
  121. _XFUNCPROTOBEGIN
  122.  
  123. void XawScrollbarSetThumb
  124. (
  125.  Widget            scrollbar,
  126. #if NeedWidePrototypes
  127.  double            top,
  128.  double            shown
  129. #else
  130.  float            top,
  131.  float            shown
  132. #endif         
  133.  );
  134.  
  135. _XFUNCPROTOEND
  136.  
  137. #endif /* _Scrollbar_h */
  138.